<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8" />
		<title>HTML前端学习</title>
		<meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com" />
		<meta name="copyright" content="www.doyoe.com" />
		<style>
			
			.d1{
				background-color: antiquewhite;
				width: 300px;
				height: 300px;
			}
			
			.d2{
				background-color: #666;
				width: 100px;
				height: 100px;
				border: solid 1px red;
				
				/*  四个方向都生效 */
				/* padding: 10px ; */
				
				/* padding: 20px  100px ; */
				/* padding: 20px 100px  50px ; */
				
				margin: 0 auto;
			}
			
			.d3{
				background-color: #ffaa00;
				width: 100px;
				height: 100px;
				border: solid 1px red;
				
				/* border-style: dashed;
				border-width: 2px;
				border-color: red ; */
				border-radius: 50px;
				text-align: center;
				line-height: 100px;
				margin: 50px;
			}
			
			
		</style>
	</head>
	<body>
		
			<p>asss</p>
		
			<div class="d1">
				
				<div class="d2">
					内部内容2
					
				</div>
				
				
				<div class="d3">
					内部内容3
					
				</div>
				
			</div>
		
	
		
		
		
		
	
	
	
 
	</body>
</html>